package com.torry.replay.integration.result;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * @author torry.wang
 */
@ApiModel(value = "同步涨停板数据结果")
@Data
public class SyncLimitUpResult {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate date;

    private String name;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "涨幅 单位 %")
    private Double increaseRange;

    @ApiModelProperty(value = "流通市值，单位 亿")
    private Double marketValue;

    @ApiModelProperty(value = "成交额 单位 亿")
    private Double volume;

    @ApiModelProperty(value = "封板资金 单位 亿")
    private Double sealAmount;

    @ApiModelProperty(value = "换手率 单位 %")
    private Double turnoverRate;

    @DateTimeFormat(pattern = "HH:mm:ss")
    @JSONField(format = "HH:mm:ss")
    @ApiModelProperty(value = "首次封板时间 HH:mm:ss")
    private LocalTime limitTime;

    @DateTimeFormat(pattern = "HH:mm:ss")
    @JSONField(format = "HH:mm:ss")
    @ApiModelProperty(value = "最后封板时间 HH:mm:ss")
    private LocalTime lastLimitTime;

    @ApiModelProperty(value = "炸板次数")
    private Integer bombCount;

    @ApiModelProperty(value = "涨停统计 几天几板")
    private String stat;

    @ApiModelProperty(value = "连板数")
    private Integer continuousCount;

    @ApiModelProperty(value = "板块ID")
    private Long tagId;

    @ApiModelProperty(value = "板块名称")
    private String tagName;

}